package com.yxy.controller.service;

import com.yxy.common.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/service/view/")
//页面视图
public class ViewController extends BaseController {


    //主体视图
    @RequestMapping(value = "main")
    public String create( ) {
        return "main/list";
    }

   //密码修改
    @RequestMapping("changPwd")
    public String list() {
        return "user/changePwd";
    }

    //所有用户
    @RequestMapping("allUsers")
    public String allUsers() {
        return "user/allUsers";
    }


    //添加用户
    @RequestMapping("addUsers")
    public String addUsers() {
        return "user/addUsers";
    }


    //个人资料
    @RequestMapping("userInfo")
    public String userInfo() {
        return "user/userInfo";
    }

    //编辑用户
    @RequestMapping("editUser")
    public String editUser() {
        return "user/editUser";
    }

    /**
     * banner管理
     */
    //banner列表
    @RequestMapping("allBanners")
    public String banners() {
        return "clientContent/list";
    }

    @RequestMapping("addBanner")
    public String addBanner() {
        return "clientContent/add";
    }


    @RequestMapping("editBanner")
    public String editBanner() {
        return "clientContent/edit";
    }

    @RequestMapping("sportList")
    public String sportList() {
        return "sport/list";
    }



}
